.class public Lcom/example/m6wmr/WaimaiActivity;
.super Landroid/app/Activity;
.source "WaimaiActivity.java"

# interfaces
.implements Lcom/wmr/Lstview/XListView$IXListViewListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/WaimaiActivity$OnScrollListenerImple;
    }
.end annotation


# static fields
.field public static h:Landroid/os/Handler;

.field public static waimai:Lcom/example/m6wmr/WaimaiActivity;


# instance fields
.field private ListViewOrder:Lcom/wmr/Lstview/XListView;

.field private areaid:Ljava/lang/String;

.field private areals:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AreaBean;",
            ">;"
        }
    .end annotation
.end field

.field private areamapname:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private helper:Ldbclass/DBOpenHelper;

.field private is_loading:Z

.field private is_showpage:Z

.field m:Lmyapp/MyApp;

.field private mPopupWindow:Landroid/widget/PopupWindow;

.field private mPopupWindowHeight:I

.field private mPopupWindowWidth:I

.field private mScreenHeight:I

.field private mScreenWidth:I

.field private mcontext:Landroid/content/Context;

.field myLoginView:Landroid/view/View;

.field orderby:Landroid/widget/LinearLayout;

.field private orderbypopwidth:I

.field orderlist:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private ordervalue:I

.field private page:I

.field pscost:Landroid/widget/LinearLayout;

.field pscostlist:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private pscostpopwidth:I

.field private pscostvalue:I

.field private searchvalue:Ljava/lang/String;

.field private sendid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShopBean;",
            ">;"
        }
    .end annotation
.end field

.field shoptype:Landroid/widget/LinearLayout;

.field private shoptypels:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShoptypeBean;",
            ">;"
        }
    .end annotation
.end field

.field private shoptypepopwidth:I

.field private shoptypevalue:I

.field private spbd:Ldata/ShopData3;

.field private temshopls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/ShopBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 70
    const/4 v0, 0x0

    sput-object v0, Lcom/example/m6wmr/WaimaiActivity;->h:Landroid/os/Handler;

    return-void
.end method

.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 65
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 66
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->areaid:Ljava/lang/String;

    .line 67
    iput-object v2, p0, Lcom/example/m6wmr/WaimaiActivity;->m:Lmyapp/MyApp;

    .line 71
    iput-object v2, p0, Lcom/example/m6wmr/WaimaiActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 82
    iput-object v2, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptype:Landroid/widget/LinearLayout;

    .line 83
    iput-object v2, p0, Lcom/example/m6wmr/WaimaiActivity;->orderby:Landroid/widget/LinearLayout;

    .line 84
    iput-object v2, p0, Lcom/example/m6wmr/WaimaiActivity;->pscost:Landroid/widget/LinearLayout;

    .line 85
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypepopwidth:I

    .line 86
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->orderbypopwidth:I

    .line 87
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostpopwidth:I

    .line 88
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    .line 89
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    .line 90
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostvalue:I

    .line 91
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->ordervalue:I

    .line 92
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    .line 93
    iput-boolean v1, p0, Lcom/example/m6wmr/WaimaiActivity;->is_loading:Z

    .line 95
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->searchvalue:Ljava/lang/String;

    .line 96
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->areamapname:Ljava/lang/String;

    .line 99
    iput-object v2, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    .line 101
    iput v3, p0, Lcom/example/m6wmr/WaimaiActivity;->page:I

    .line 102
    iput-boolean v3, p0, Lcom/example/m6wmr/WaimaiActivity;->is_showpage:Z

    .line 103
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->sendid:Ljava/lang/String;

    .line 65
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/WaimaiActivity;)Z
    .locals 1

    .prologue
    .line 102
    iget-boolean v0, p0, Lcom/example/m6wmr/WaimaiActivity;->is_showpage:Z

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/WaimaiActivity;)I
    .locals 1

    .prologue
    .line 101
    iget v0, p0, Lcom/example/m6wmr/WaimaiActivity;->page:I

    return v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/WaimaiActivity;)V
    .locals 0

    .prologue
    .line 993
    invoke-direct {p0}, Lcom/example/m6wmr/WaimaiActivity;->onLoad()V

    return-void
.end method

.method static synthetic access$11(Lcom/example/m6wmr/WaimaiActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 74
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/WaimaiActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 95
    iput-object p1, p0, Lcom/example/m6wmr/WaimaiActivity;->searchvalue:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$13(Lcom/example/m6wmr/WaimaiActivity;Landroid/widget/PopupWindow;)V
    .locals 0

    .prologue
    .line 74
    iput-object p1, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-void
.end method

.method static synthetic access$14(Lcom/example/m6wmr/WaimaiActivity;)V
    .locals 0

    .prologue
    .line 492
    invoke-direct {p0}, Lcom/example/m6wmr/WaimaiActivity;->initshoptypeWindow()V

    return-void
.end method

.method static synthetic access$15(Lcom/example/m6wmr/WaimaiActivity;)V
    .locals 0

    .prologue
    .line 542
    invoke-direct {p0}, Lcom/example/m6wmr/WaimaiActivity;->initorderbyWindow()V

    return-void
.end method

.method static synthetic access$16(Lcom/example/m6wmr/WaimaiActivity;)V
    .locals 0

    .prologue
    .line 582
    invoke-direct {p0}, Lcom/example/m6wmr/WaimaiActivity;->initpscostWindow()V

    return-void
.end method

.method static synthetic access$17(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 85
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypepopwidth:I

    return-void
.end method

.method static synthetic access$18(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 86
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->orderbypopwidth:I

    return-void
.end method

.method static synthetic access$19(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 87
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostpopwidth:I

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 101
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->page:I

    return-void
.end method

.method static synthetic access$20(Lcom/example/m6wmr/WaimaiActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 72
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypels:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$21(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 92
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    return-void
.end method

.method static synthetic access$22(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 91
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->ordervalue:I

    return-void
.end method

.method static synthetic access$23(Lcom/example/m6wmr/WaimaiActivity;I)V
    .locals 0

    .prologue
    .line 90
    iput p1, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostvalue:I

    return-void
.end method

.method static synthetic access$24(Lcom/example/m6wmr/WaimaiActivity;)I
    .locals 1

    .prologue
    .line 90
    iget v0, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostvalue:I

    return v0
.end method

.method static synthetic access$25(Lcom/example/m6wmr/WaimaiActivity;)I
    .locals 1

    .prologue
    .line 91
    iget v0, p0, Lcom/example/m6wmr/WaimaiActivity;->ordervalue:I

    return v0
.end method

.method static synthetic access$26(Lcom/example/m6wmr/WaimaiActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 95
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->searchvalue:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$27(Lcom/example/m6wmr/WaimaiActivity;)I
    .locals 1

    .prologue
    .line 92
    iget v0, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    return v0
.end method

.method static synthetic access$28(Lcom/example/m6wmr/WaimaiActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->areaid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$29(Lcom/example/m6wmr/WaimaiActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 73
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->areals:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/WaimaiActivity;Z)V
    .locals 0

    .prologue
    .line 102
    iput-boolean p1, p0, Lcom/example/m6wmr/WaimaiActivity;->is_showpage:Z

    return-void
.end method

.method static synthetic access$30(Lcom/example/m6wmr/WaimaiActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 96
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->areamapname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$31(Lcom/example/m6wmr/WaimaiActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 96
    iput-object p1, p0, Lcom/example/m6wmr/WaimaiActivity;->areamapname:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$32(Lcom/example/m6wmr/WaimaiActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 66
    iput-object p1, p0, Lcom/example/m6wmr/WaimaiActivity;->areaid:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$33(Lcom/example/m6wmr/WaimaiActivity;Landroid/view/View;)V
    .locals 0

    .prologue
    .line 907
    invoke-direct {p0, p1}, Lcom/example/m6wmr/WaimaiActivity;->initmapWindow(Landroid/view/View;)V

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/WaimaiActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 69
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/WaimaiActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 94
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->shopls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/WaimaiActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 94
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->temshopls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/WaimaiActivity;)Lcom/wmr/Lstview/XListView;
    .locals 1

    .prologue
    .line 104
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/WaimaiActivity;Ldata/ShopData3;)V
    .locals 0

    .prologue
    .line 100
    iput-object p1, p0, Lcom/example/m6wmr/WaimaiActivity;->spbd:Ldata/ShopData3;

    return-void
.end method

.method static synthetic access$9(Lcom/example/m6wmr/WaimaiActivity;)Ldata/ShopData3;
    .locals 1

    .prologue
    .line 100
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->spbd:Ldata/ShopData3;

    return-object v0
.end method

.method private initmapWindow(Landroid/view/View;)V
    .locals 10
    .param p1, "parent"    # Landroid/view/View;

    .prologue
    const/4 v9, 0x0

    const/4 v8, -0x2

    .line 908
    move-object v3, p1

    .line 909
    .local v3, "myView":Landroid/view/View;
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    .line 910
    .local v2, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v2, v6, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->myLoginView:Landroid/view/View;

    .line 911
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->myLoginView:Landroid/view/View;

    const v7, 0x7f0c0366

    invoke-virtual {v6, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 912
    .local v4, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "waimaiACtivity"

    const-string v7, "\u52a0\u8f7d\u5e97\u94fa\u533a\u57df\u5207\u6362\u5f39\u51fa\u5c42"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 913
    invoke-virtual {v4}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 914
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->areals:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v1, v6, :cond_0

    .line 950
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 951
    new-instance v6, Landroid/widget/PopupWindow;

    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->myLoginView:Landroid/view/View;

    invoke-direct {v6, v7, v8, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 952
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 953
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowWidth:I

    .line 954
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowHeight:I

    .line 956
    return-void

    .line 916
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f030053

    invoke-static {v6, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    .line 917
    .local v5, "tempview":Landroid/view/View;
    invoke-virtual {v5, v1}, Landroid/view/View;->setId(I)V

    .line 918
    const v6, 0x7f0c022c

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 919
    .local v0, "areaname":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->areals:Ljava/util/List;

    invoke-interface {v6, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lbean/AreaBean;

    invoke-virtual {v6}, Lbean/AreaBean;->getname()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 920
    invoke-virtual {v4, v5, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 921
    new-instance v6, Lcom/example/m6wmr/WaimaiActivity$16;

    invoke-direct {v6, p0, v3}, Lcom/example/m6wmr/WaimaiActivity$16;-><init>(Lcom/example/m6wmr/WaimaiActivity;Landroid/view/View;)V

    invoke-virtual {v5, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 914
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method private initorderbyWindow()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    .line 543
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 544
    .local v1, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v1, v6, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 545
    .local v2, "popupWindow":Landroid/view/View;
    const v6, 0x7f0c0366

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 546
    .local v3, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "waimaiACtivity"

    const-string v7, "\u52a0\u8f7d\u5e97\u94fa\u6392\u5e8f\u5f39\u51fa\u5c42\u754c\u9762"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 547
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v0, v6, :cond_0

    .line 574
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 575
    new-instance v6, Landroid/widget/PopupWindow;

    iget v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderbypopwidth:I

    const/4 v8, -0x2

    invoke-direct {v6, v2, v7, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 576
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 577
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowWidth:I

    .line 578
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowHeight:I

    .line 580
    return-void

    .line 549
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f0300b4

    invoke-static {v6, v7, v8}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 550
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 551
    const v6, 0x7f0c0013

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 552
    .local v5, "textView1":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    invoke-interface {v6, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/CharSequence;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 553
    invoke-virtual {v3, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 555
    new-instance v6, Lcom/example/m6wmr/WaimaiActivity$12;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/WaimaiActivity$12;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 547
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private initpscostWindow()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    .line 583
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 584
    .local v1, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f0300b6

    invoke-virtual {v1, v6, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 585
    .local v2, "popupWindow":Landroid/view/View;
    const v6, 0x7f0c0366

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 586
    .local v3, "selectview":Landroid/widget/LinearLayout;
    const-string v6, "waimaiACtivity"

    const-string v7, "\u52a0\u8f7d\u5e97\u94fa\u966a\u9001\u5f39\u51fa\u5c42\u754c\u9762"

    invoke-static {v6, v7}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 588
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v0, v6, :cond_0

    .line 614
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 615
    new-instance v6, Landroid/widget/PopupWindow;

    iget v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostpopwidth:I

    const/4 v8, -0x2

    invoke-direct {v6, v2, v7, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 616
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 617
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowWidth:I

    .line 618
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowHeight:I

    .line 620
    return-void

    .line 590
    :cond_0
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f0300b4

    invoke-static {v6, v7, v8}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 591
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 592
    const v6, 0x7f0c0013

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 593
    .local v5, "textView1":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    invoke-interface {v6, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/CharSequence;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 594
    invoke-virtual {v3, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 595
    new-instance v6, Lcom/example/m6wmr/WaimaiActivity$13;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/WaimaiActivity$13;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 588
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method private initshoptypeWindow()V
    .locals 10

    .prologue
    const/4 v9, 0x0

    .line 493
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v2

    .line 494
    .local v2, "layoutInflater":Landroid/view/LayoutInflater;
    const v7, 0x7f0300b6

    invoke-virtual {v2, v7, v9}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 495
    .local v3, "popupWindow":Landroid/view/View;
    const v7, 0x7f0c0366

    invoke-virtual {v3, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 497
    .local v4, "selectview":Landroid/widget/LinearLayout;
    const-string v7, "waimaiACtivity"

    const-string v8, "\u52a0\u8f7d\u5e97\u94fa\u5206\u7c7b\u5f39\u51fa\u5c42\u754c\u9762"

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 500
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_0
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    if-lt v1, v7, :cond_0

    .line 530
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v7

    invoke-interface {v7}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v7

    invoke-virtual {v7}, Landroid/view/Display;->getWidth()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 533
    new-instance v7, Landroid/widget/PopupWindow;

    iget v8, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypepopwidth:I

    const/4 v9, -0x2

    invoke-direct {v7, v3, v8, v9}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 537
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v7

    invoke-interface {v7}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v7

    invoke-virtual {v7}, Landroid/view/Display;->getHeight()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mScreenWidth:I

    .line 538
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v7}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowWidth:I

    .line 539
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v7}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindowHeight:I

    .line 540
    return-void

    .line 502
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    const v8, 0x7f0300b4

    invoke-static {v7, v8, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    .line 503
    .local v5, "tempview":Landroid/view/View;
    invoke-virtual {v5, v1}, Landroid/view/View;->setId(I)V

    .line 504
    const v7, 0x7f0c0013

    invoke-virtual {v5, v7}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 505
    .local v6, "textView1":Landroid/widget/TextView;
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v7, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/ShoptypeBean;

    .line 506
    .local v0, "bbc":Lbean/ShoptypeBean;
    invoke-virtual {v0}, Lbean/ShoptypeBean;->getname()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 507
    invoke-virtual {v4, v5, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 509
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$11;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$11;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v5, v7}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 500
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 994
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopRefresh()V

    .line 995
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v0}, Lcom/wmr/Lstview/XListView;->stopLoadMore()V

    .line 996
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 997
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/example/m6wmr/WaimaiActivity;->is_loading:Z

    .line 998
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 1023
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 1024
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 1023
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 1025
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 1026
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public Inishop()V
    .locals 0

    .prologue
    .line 490
    return-void
.end method

.method public areaCount(I)J
    .locals 6
    .param p1, "parentid"    # I

    .prologue
    .line 958
    const-wide/16 v1, 0x0

    .line 959
    .local v1, "shu":J
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v3}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v3

    .line 960
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "select count(*) from area where parent_id="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    .line 959
    invoke-virtual {v3, v4, v5}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v3

    iput-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    .line 962
    :try_start_0
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->moveToFirst()Z

    .line 963
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const/4 v4, 0x0

    invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result-wide v1

    .line 968
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v3, :cond_0

    .line 969
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    .line 974
    :cond_0
    :goto_0
    return-wide v1

    .line 964
    :catch_0
    move-exception v0

    .line 965
    .local v0, "e":Ljava/lang/Exception;
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 968
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v3, :cond_0

    .line 969
    iget-object v3, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    goto :goto_0

    .line 966
    .end local v0    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v3

    .line 968
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_1

    .line 969
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    .line 972
    :cond_1
    throw v3
.end method

.method public bindbtn()V
    .locals 9

    .prologue
    .line 341
    const v7, 0x7f0c0001

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 342
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$2;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$2;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v0, v7}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 349
    const v7, 0x7f0c009c

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/ImageView;

    .line 350
    .local v3, "searchbtn":Landroid/widget/ImageView;
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$3;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$3;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v3, v7}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 391
    const v7, 0x7f0c0145

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/Button;

    .line 392
    .local v1, "mapbtn":Landroid/widget/Button;
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$4;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$4;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v1, v7}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 403
    const v7, 0x7f0c0146

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptype:Landroid/widget/LinearLayout;

    .line 404
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptype:Landroid/widget/LinearLayout;

    new-instance v8, Lcom/example/m6wmr/WaimaiActivity$5;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/WaimaiActivity$5;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 420
    const v7, 0x7f0c0148

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderby:Landroid/widget/LinearLayout;

    .line 421
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderby:Landroid/widget/LinearLayout;

    new-instance v8, Lcom/example/m6wmr/WaimaiActivity$6;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/WaimaiActivity$6;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 436
    const v7, 0x7f0c014a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/LinearLayout;

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscost:Landroid/widget/LinearLayout;

    .line 437
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscost:Landroid/widget/LinearLayout;

    new-instance v8, Lcom/example/m6wmr/WaimaiActivity$7;

    invoke-direct {v8, p0}, Lcom/example/m6wmr/WaimaiActivity$7;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v7, v8}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 456
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptype:Landroid/widget/LinearLayout;

    invoke-virtual {v7}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v4

    .line 457
    .local v4, "vto":Landroid/view/ViewTreeObserver;
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$8;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$8;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v4, v7}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 464
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderby:Landroid/widget/LinearLayout;

    invoke-virtual {v7}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v5

    .line 465
    .local v5, "vto2":Landroid/view/ViewTreeObserver;
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$9;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$9;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v5, v7}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 472
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscost:Landroid/widget/LinearLayout;

    invoke-virtual {v7}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v6

    .line 473
    .local v6, "vto3":Landroid/view/ViewTreeObserver;
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$10;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$10;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    invoke-virtual {v6, v7}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 481
    const v7, 0x7f0c0016

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/example/location/BottomMenu;

    .line 482
    .local v2, "menu":Lcom/example/location/BottomMenu;
    const-string v7, "index"

    invoke-virtual {v2, v7}, Lcom/example/location/BottomMenu;->SetOn(Ljava/lang/String;)V

    .line 484
    return-void
.end method

.method public getShopSource()Z
    .locals 1

    .prologue
    .line 757
    new-instance v0, Lcom/example/m6wmr/WaimaiActivity$15;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/WaimaiActivity$15;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    .line 901
    invoke-virtual {v0}, Lcom/example/m6wmr/WaimaiActivity$15;->start()V

    .line 902
    const/4 v0, 0x0

    return v0
.end method

.method public getShopSource2()Z
    .locals 1

    .prologue
    .line 623
    new-instance v0, Lcom/example/m6wmr/WaimaiActivity$14;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/WaimaiActivity$14;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    .line 751
    invoke-virtual {v0}, Lcom/example/m6wmr/WaimaiActivity$14;->start()V

    .line 752
    const/4 v0, 0x0

    return v0
.end method

.method public getarearr(I)V
    .locals 7
    .param p1, "parentid"    # I

    .prologue
    .line 314
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v4}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v4

    .line 315
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "select * from area where parent_id ="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    .line 314
    invoke-virtual {v4, v5, v6}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v4

    iput-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    .line 317
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->areals:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->clear()V

    .line 319
    :try_start_0
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_0

    .line 320
    :goto_0
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v4

    if-nez v4, :cond_2

    .line 335
    :cond_0
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_1

    .line 336
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    .line 339
    :cond_1
    :goto_1
    return-void

    .line 321
    :cond_2
    :try_start_1
    new-instance v1, Lbean/AreaBean;

    invoke-direct {v1}, Lbean/AreaBean;-><init>()V

    .line 322
    .local v1, "bb":Lbean/AreaBean;
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "id"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 323
    .local v0, "_id":I
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "parent_id"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I

    move-result v3

    .line 324
    .local v3, "parent_id":I
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setId(Ljava/lang/String;)V

    .line 325
    invoke-static {v3}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setparent_id(Ljava/lang/String;)V

    .line 326
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "name"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setname(Ljava/lang/String;)V

    .line 327
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "lng"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setlng(Ljava/lang/String;)V

    .line 328
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v6, "lat"

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v5

    invoke-interface {v4, v5}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Lbean/AreaBean;->setlng(Ljava/lang/String;)V

    .line 329
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->areals:Ljava/util/List;

    invoke-interface {v4, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 332
    .end local v0    # "_id":I
    .end local v1    # "bb":Lbean/AreaBean;
    .end local v3    # "parent_id":I
    :catch_0
    move-exception v2

    .line 333
    .local v2, "e":Ljava/lang/Exception;
    :try_start_2
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 335
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v4, :cond_1

    .line 336
    iget-object v4, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v4}, Landroid/database/Cursor;->close()V

    goto :goto_1

    .line 334
    .end local v2    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v4

    .line 335
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_3

    .line 336
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    .line 338
    :cond_3
    throw v4
.end method

.method public gettypearr()V
    .locals 8

    .prologue
    .line 281
    new-instance v2, Lbean/ShoptypeBean;

    invoke-direct {v2}, Lbean/ShoptypeBean;-><init>()V

    .line 282
    .local v2, "bb2":Lbean/ShoptypeBean;
    const-string v5, "0"

    invoke-virtual {v2, v5}, Lbean/ShoptypeBean;->setId(Ljava/lang/String;)V

    .line 283
    const-string v5, "\u6240\u6709\u5206\u7c7b"

    invoke-virtual {v2, v5}, Lbean/ShoptypeBean;->setname(Ljava/lang/String;)V

    .line 284
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v5, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 286
    :try_start_0
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v5}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v5

    .line 287
    const-string v6, "select * from shoptype where cattype = 0 "

    const/4 v7, 0x0

    .line 286
    invoke-virtual {v5, v6, v7}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v5

    iput-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    .line 288
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_0

    .line 289
    :goto_0
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v5

    if-nez v5, :cond_2

    .line 306
    :cond_0
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_1

    .line 307
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    .line 311
    :cond_1
    :goto_1
    return-void

    .line 290
    :cond_2
    :try_start_1
    new-instance v1, Lbean/ShoptypeBean;

    invoke-direct {v1}, Lbean/ShoptypeBean;-><init>()V

    .line 291
    .local v1, "bb":Lbean/ShoptypeBean;
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "id"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getInt(I)I

    move-result v0

    .line 292
    .local v0, "_id":I
    invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Lbean/ShoptypeBean;->setId(Ljava/lang/String;)V

    .line 293
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "name"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Lbean/ShoptypeBean;->setname(Ljava/lang/String;)V

    .line 294
    iget v5, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    if-lez v5, :cond_3

    .line 295
    iget v5, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    if-ne v0, v5, :cond_3

    .line 296
    const v5, 0x7f0c0147

    invoke-virtual {p0, v5}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 297
    .local v4, "shoptypename":Landroid/widget/TextView;
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    const-string v7, "name"

    invoke-interface {v6, v7}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v6

    invoke-interface {v5, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 300
    .end local v4    # "shoptypename":Landroid/widget/TextView;
    :cond_3
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypels:Ljava/util/List;

    invoke-interface {v5, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 303
    .end local v0    # "_id":I
    .end local v1    # "bb":Lbean/ShoptypeBean;
    :catch_0
    move-exception v3

    .line 304
    .local v3, "e":Ljava/lang/Exception;
    :try_start_2
    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 306
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v5, :cond_1

    .line 307
    iget-object v5, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v5}, Landroid/database/Cursor;->close()V

    goto :goto_1

    .line 305
    .end local v3    # "e":Ljava/lang/Exception;
    :catchall_0
    move-exception v5

    .line 306
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v6, :cond_4

    .line 307
    iget-object v6, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    .line 309
    :cond_4
    throw v5
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 9
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 108
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 109
    const v7, 0x7f03003a

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->setContentView(I)V

    .line 111
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v7

    check-cast v7, Lmyapp/MyApp;

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->m:Lmyapp/MyApp;

    .line 112
    const/high16 v7, 0x7f0c0000

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 113
    .local v6, "top":Landroid/widget/LinearLayout;
    const v7, 0x7f0c0145

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/Button;

    .line 114
    .local v3, "mapbtn":Landroid/widget/Button;
    const v7, 0x7f0c0143

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 115
    .local v1, "imageView3":Landroid/widget/ImageView;
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v7

    const-string v8, "1"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_0

    .line 116
    const v7, 0x7f070026

    invoke-virtual {v6, v7}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 117
    const v7, -0xbf2a71

    invoke-virtual {v3, v7}, Landroid/widget/Button;->setBackgroundColor(I)V

    .line 118
    const v7, 0x7f020022

    invoke-virtual {v1, v7}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 120
    :cond_0
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v7}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 121
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 122
    iput-object p0, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    .line 123
    sput-object p0, Lcom/example/m6wmr/WaimaiActivity;->waimai:Lcom/example/m6wmr/WaimaiActivity;

    .line 124
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    const-string v8, "\u9ed8\u8ba4"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 125
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    const-string v8, "\u8ddd\u79bb"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 126
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    const-string v8, "\u8d77\u9001\u4ef7"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 127
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->orderlist:Ljava/util/List;

    const-string v8, "\u63a8\u8350"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 128
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    const-string v8, "\u4e0d\u9650\u8d77\u9001\u4ef7"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 129
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    const-string v8, "\u4f4e\u4e8e10\u5143"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 130
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    const-string v8, "10\u5143\u523020\u5143"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 131
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->pscostlist:Ljava/util/List;

    const-string v8, "20\u5143\u4ee5\u4e0a"

    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 132
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 133
    .local v2, "intent":Landroid/content/Intent;
    const-string v7, "sendid"

    invoke-virtual {v2, v7}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->sendid:Ljava/lang/String;

    .line 135
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->sendid:Ljava/lang/String;

    if-eqz v7, :cond_1

    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->sendid:Ljava/lang/String;

    const-string v8, "0"

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_2

    .line 136
    :cond_1
    const/4 v7, 0x0

    iput v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    .line 142
    :goto_0
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypels:Ljava/util/List;

    .line 143
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->areals:Ljava/util/List;

    .line 144
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shopls:Ljava/util/List;

    .line 145
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->temshopls:Ljava/util/List;

    .line 147
    const v7, 0x7f0c0144

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 148
    .local v4, "mapnametext":Landroid/widget/TextView;
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->m:Lmyapp/MyApp;

    iget-boolean v7, v7, Lmyapp/MyApp;->Ismap:Z

    if-nez v7, :cond_3

    .line 149
    const-string v7, "\u5b9a\u4f4d\u5931\u8d25"

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 156
    :goto_1
    const v7, 0x7f0c0057

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Lcom/wmr/Lstview/XListView;

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    .line 157
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 158
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    invoke-virtual {v7, p0}, Lcom/wmr/Lstview/XListView;->setXListViewListener(Lcom/wmr/Lstview/XListView$IXListViewListener;)V

    .line 159
    new-instance v7, Lcom/example/m6wmr/WaimaiActivity$1;

    invoke-direct {v7, p0}, Lcom/example/m6wmr/WaimaiActivity$1;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    sput-object v7, Lcom/example/m6wmr/WaimaiActivity;->h:Landroid/os/Handler;

    .line 232
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->bindbtn()V

    .line 235
    const v7, 0x7f0c0142

    invoke-virtual {p0, v7}, Lcom/example/m6wmr/WaimaiActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 236
    .local v5, "shoplistname":Landroid/widget/TextView;
    const-string v7, "\u5546\u5bb6\u5217\u8868"

    invoke-virtual {v5, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 237
    new-instance v7, Ldbclass/DBOpenHelper;

    iget-object v8, p0, Lcom/example/m6wmr/WaimaiActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v7, v8}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->helper:Ldbclass/DBOpenHelper;

    .line 238
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v7}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v7

    iput-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 239
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->gettypearr()V

    .line 241
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->getShopSource()Z

    .line 243
    return-void

    .line 138
    .end local v4    # "mapnametext":Landroid/widget/TextView;
    .end local v5    # "shoplistname":Landroid/widget/TextView;
    :cond_2
    iget-object v7, p0, Lcom/example/m6wmr/WaimaiActivity;->sendid:Ljava/lang/String;

    invoke-static {v7}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v7

    iput v7, p0, Lcom/example/m6wmr/WaimaiActivity;->shoptypevalue:I

    goto :goto_0

    .line 152
    .restart local v4    # "mapnametext":Landroid/widget/TextView;
    :cond_3
    sget-object v7, Lmyapp/MyApp;->mapnameParticular:Ljava/lang/String;

    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_1
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 979
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 982
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    if-eqz v0, :cond_0

    .line 983
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    .line 985
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_1

    .line 986
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 988
    :cond_1
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_2

    .line 989
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 992
    :cond_2
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 1048
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 1049
    invoke-virtual {p0}, Lcom/example/m6wmr/WaimaiActivity;->finish()V

    .line 1052
    :cond_0
    return v1
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 1032
    iget-boolean v0, p0, Lcom/example/m6wmr/WaimaiActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 1033
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/example/m6wmr/WaimaiActivity;->is_loading:Z

    .line 1034
    iget v0, p0, Lcom/example/m6wmr/WaimaiActivity;->page:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/example/m6wmr/WaimaiActivity;->page:I

    .line 1036
    sget-object v0, Lcom/example/m6wmr/WaimaiActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/WaimaiActivity$18;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/WaimaiActivity$18;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    .line 1041
    const-wide/16 v2, 0x1f4

    .line 1036
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 1044
    :cond_0
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    .line 1003
    iget-boolean v0, p0, Lcom/example/m6wmr/WaimaiActivity;->is_loading:Z

    if-nez v0, :cond_0

    .line 1004
    iput-boolean v1, p0, Lcom/example/m6wmr/WaimaiActivity;->is_loading:Z

    .line 1005
    iput v1, p0, Lcom/example/m6wmr/WaimaiActivity;->page:I

    .line 1006
    iget-object v0, p0, Lcom/example/m6wmr/WaimaiActivity;->ListViewOrder:Lcom/wmr/Lstview/XListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/wmr/Lstview/XListView;->setPullLoadEnable(Z)V

    .line 1008
    sget-object v0, Lcom/example/m6wmr/WaimaiActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6wmr/WaimaiActivity$17;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/WaimaiActivity$17;-><init>(Lcom/example/m6wmr/WaimaiActivity;)V

    .line 1016
    const-wide/16 v2, 0x1f4

    .line 1008
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 1018
    :cond_0
    return-void
.end method
